package com.guigu.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.community.pojo.Carts;

import java.util.List;

public interface CartsService extends IService<Carts> {

    /**
     * 添加购物车
     * @param pid
     * @param uid
     * @return
     */
    boolean addCarts(Integer pid,Integer uid,Integer num);


    List<Carts> listCarts(Integer uid);

    //根据购物车id修改数量
    boolean updateCarts(Integer cartId,Integer sum);

}
